#-------------------------------------------------
#
# Project created by QtCreator 2022-09-26T11:30:21
#
#-------------------------------------------------

QT       -= gui
QT       += core
QT       += sql
QT       += network
#引用qtxlsx源文件
include(qtxlsx/src/xlsx/qtxlsx.pri)

TARGET = service
TEMPLATE = lib
CONFIG += staticlib
CONFIG += c++11


DEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_NO_DEBUG_OUTPUT

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ConfigFileservice.cpp \
    DataAnalysisService.cpp \
        DeviceManageMentservice.cpp \
        DyelibraryService.cpp \
        ExperimentService.cpp \
    ExportFileService.cpp \
    InstructionsService.cpp \
    PreferencesService.cpp \
        ProcedureService.cpp \
        SamplelibraryService.cpp \
    TargetService.cpp \
    WLKService.cpp \
        service.cpp \
        ..\network\socketclient.cpp

HEADERS += \
        ConfigFileservice.h \
        DataAnalysisService.h \
        DeviceManagementService.h \
        DyelibraryService.h \
        ExperimentService.h \
        ExportFileService.h \
        InstructionsService.h \
        PreferencesService.h \
        ProcedureService.h \
        SamplelibraryService.h \
        TargetService.h \
        WLKService.h \
        service.h \
        service_global.h \
        ..\network\socketclient.h

unix {
    target.path = /usr/lib
    INSTALLS += target
}



win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../util/release/ -lutil
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../util/debug/ -lutil
else:unix: LIBS += -L$$OUT_PWD/../util/ -lutil

INCLUDEPATH += $$PWD/../util
DEPENDPATH += $$PWD/../util

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/release/libutil.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/debug/libutil.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/release/util.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../util/debug/util.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../util/libutil.a

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../network/release/ -lnetwork
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../network/debug/ -lnetwork
else:unix: LIBS += -L$$OUT_PWD/../network/ -lnetwork

INCLUDEPATH += $$PWD/../network
DEPENDPATH += $$PWD/../network

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../network/release/libnetwork.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../network/debug/libnetwork.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../network/release/network.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../network/debug/network.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../network/libnetwork.a

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../expLog/release/ -lexpLog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../expLog/debug/ -lexpLog
else:unix: LIBS += -L$$OUT_PWD/../expLog/ -lexpLog

INCLUDEPATH += $$PWD/../expLog
DEPENDPATH += $$PWD/../expLog

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/release/libexpLog.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/debug/libexpLog.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/release/expLog.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../expLog/debug/expLog.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../expLog/libexpLog.a
